package headfirst.strategy;

public class MsgSendByMailAll implements MsgSendBehavior
{
	private String m_msgstr=null;
	public MsgSendByMailAll(String msg)
	{
		this.m_msgstr = msg;
	}

	public boolean doSend()
	{
		if(null == this.m_msgstr || 0 == this.m_msgstr.length())
		{
			return false;
		}
		//to do send msg to all by mail
		System.out.println("send msg to all by mail : "+this.m_msgstr);
		return true;
	}
}
